import { createSSRApp } from "vue";
import App from "./App.vue";

import uviewPlus from "@/uni_modules/uview-plus";
import { setupStore } from "@/store";
import { setupDirective } from "@/directive";

import "@/utils/interceptor";
export function createApp() {
	const app = createSSRApp(App);
	setupStore(app);
	setupDirective(app);
	app.use(uviewPlus);
	uni.$u.config.unit = "rpx";
	return {
		app
	};
}
